package com.caht.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * 评论
 */
@Data
public class comment {
    // 评论 id
    private int id;
    //文章帖子id
    private int postsId;
    //用户 id
    private Long commentUserId;
    //品论内容
    private String content;
    //点赞数量
    private int likecontext;
    //创建时间
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime creationTime;
    //修改时间
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
